using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace SmartApplication.Domain.Entity
{
    /// <summary>
    /// 屠宰详细信息
    /// </summary>
    [Table("KillModel")]
    public class KillModel : BaseEntity
    {
        /// <summary>
        /// 溯源编号
        /// </summary>
        [Required]
        public long SourceId { get; set; }

        /// <summary>
        /// 到厂均重
        /// </summary>
        public int Height { get; set; }

        /// <summary>
        /// 到厂时间
        /// </summary>
        public DateTime BeginTime { get; set; }

        /// <summary>
        /// 屠宰时间
        /// </summary>
        public DateTime EndTime { get; set; }

        /// <summary>
        /// 图片(宰前照 宰后照)
        /// </summary>
        [StringLength(500)]
        public string KillPic { get; set; }

        /// <summary>
        /// 屠宰企业编号
        /// </summary>
        [Required]
        public long BusinessId { get; set; }

    }
} 